home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / applic / ntp / depredated / ntp.3.4 / patches / patch11.Z / patch11
Encoding:
Text File  |  1991-09-29  |  2.6 KB  |  94 lines

  1. System: ntp version 3.4
  2. Patch #: 11
  3. Priority: 
  4. From:
  5.  
  6. Description:
  7. Stupid typo - dereferenced unused variable in select_clock().  This caused
  8. heartburn on Suns, which don't have address 0 mapped into their address
  9. space.  Please apply this patch or grab a new tar file.
  10.  
  11.  
  12. Repeat-By:
  13.  
  14. Fix:    From rn, say "| patch -p -N -d DIR", where DIR is your ntp source
  15.     directory.  Outside of rn, say "cd DIR; patch -p -N <thisarticle".
  16.     If you don't have the patch program, apply the following by hand,
  17.     or get patch (version 2.0, latest patchlevel).
  18.  
  19.     After patching:
  20.         make depend
  21.         make
  22.         make install
  23.  
  24.     If patch indicates that patchlevel is the wrong version, you may need
  25.     to apply one or more previous patches, or the patch may already
  26.     have been applied.  See the patchlevel.h file to find out what has or
  27.     has not been applied.  In any event, don't continue with the patch.
  28.  
  29.     If you are missing previous patches they can be obtained from me:
  30.  
  31.     Louis A. Mamakos
  32.     louie@trantor.umd.edu
  33.  
  34.     You can also get the patches via anonymous FTP from
  35.     trantor.umd.edu.
  36.  
  37. Index: patchlevel.h
  38. Prereq: 10
  39. 1c1
  40. < #define PATCHLEVEL 10
  41. ---
  42. > #define PATCHLEVEL 11
  43.  
  44. Index: ntp_proto.c
  45. *** ntp_proto.c.old    Wed May  3 19:03:45 1989
  46. --- ntp_proto.c    Wed May  3 19:03:54 1989
  47. ***************
  48. *** 1,5 ****
  49.   #ifndef    lint
  50. ! static char *rcsid = "$Source: /usr/users/louie/ntp/RCS/ntp_proto.c,v $ $Revision: 3.4.1.9 $ $Date: 89/05/03 15:13:25 $";
  51.   #endif
  52.   
  53.   /*
  54. --- 1,5 ----
  55.   #ifndef    lint
  56. ! static char *rcsid = "$Source: /usr/users/louie/ntp/RCS/ntp_proto.c,v $ $Revision: 3.4.1.10 $ $Date: 89/05/03 19:03:02 $";
  57.   #endif
  58.   
  59.   /*
  60. ***************
  61. *** 11,16 ****
  62. --- 11,19 ----
  63.   
  64.   /*
  65.    * $Log:    ntp_proto.c,v $
  66. +  * Revision 3.4.1.10  89/05/03  19:03:02  louie
  67. +  * Stupid typo - dereferenced unused variable in select_clock()
  68. +  * 
  69.    * Revision 3.4.1.9  89/05/03  15:13:25  louie
  70.    * Add code to count number of peer switches and inhibited peer switches.  Clock
  71.    * selection code has been updated to reflect 21 April 1989 draft of NTP spec.
  72. ***************
  73. *** 978,986 ****
  74.               sel_lst[i].distance = dispersion;
  75.               
  76.               precision_thres = NTP_MAXSKW + 1.0/(1<<-sys.precision);
  77. !             if (peer->precision < 0 &&
  78. !                 -peer->precision < sizeof(long)*NBBY)
  79. !                 precision_thres += 1.0/(1<<-peer->precision);
  80.   
  81.               sel_lst[i].precision = precision_thres;
  82.   
  83. --- 981,990 ----
  84.               sel_lst[i].distance = dispersion;
  85.               
  86.               precision_thres = NTP_MAXSKW + 1.0/(1<<-sys.precision);
  87. !             if (sel_lst[i].peer->precision < 0 &&
  88. !                 -sel_lst[i].peer->precision < sizeof(long)*NBBY)
  89. !                 precision_thres +=
  90. !                     1.0/(1<<-sel_lst[i].peer->precision);
  91.   
  92.               sel_lst[i].precision = precision_thres;
  93.   
  94.